package org.example.client8000.util;

import com.alibaba.fastjson.JSONObject;

import java.awt.*;
import java.util.Arrays;

public class StringManipulation {

    public static String strip(Object obj) {
        if(obj == null) {
            throw new NullPointerException("请传入正确的参数");
        }
        String str = JSONObject.toJSONString(obj);

        return str.replaceAll("[\\[\\][\"]]", "");
    }
}
